<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>高亮显示案例</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        li {
            list-style: none;
        }

        body {
            background-color: black;
        }

        .box {
            margin: 100px auto;
            padding: 5px;
            width: 642px;
            height: 406px;
            border: 1px solid white;
            box-sizing: border-box;
        }

        .box ul li {
            margin: 5px;
            float: left;
            width: 200px;
            height: 186px;
            cursor: pointer;
        }
    </style>
    <script src="./js/jQuery.min.js"></script>
</head>

<body>
    <!-- 642 406 -->
    <div class="box">
        <ul>
            <li>
                <img src="./images/01.jpg" alt="">
            </li>
            <li>
                <img src="./images/02.jpg" alt="">
            </li>
            <li>
                <img src="./images/03.jpg" alt="">
            </li>
            <li>
                <img src="./images/04.jpg" alt="">
            </li>
            <li>
                <img src="./images/05.jpg" alt="">
            </li>
            <li>
                <img src="./images/06.jpg" alt="">
            </li>
        </ul>
    </div>

    <script>
        $(function () {
            $(".box ul li").hover(function () {
                $(this).siblings("li").stop().fadeTo("normal", 0.5);
                $(this).stop().fadeTo("normal", 1);
            }, function () {
                $(this).siblings("li").stop().fadeTo("normal", 1);
            });
        });

    </script>
</body>

</html>